<?php
/**
 * Created by PhpStorm.
 * Author: Shadow
 * Date: 2022/5/26
 * Time: 10:09 上午
 * description: mutli.php
 * 多级联动的路由
 */


use think\facade\Route;

Route::get('/',"index/index");

//Route::get('category',function (){
//    return view('category');
//});
// 1.0 多级联动
Route::get('category','index/category');
Route::get('getCategory','index/getCategory');

// 2.0 多级联动

Route::get('category-v2',function (){
    return view('/category-v2');
});
Route::get('getCategory-v2','index/getCategoryV2');